package com.guigu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.pojo.PurchaseInfo;
import com.guigu.pojo.ShopInfo;
import com.guigu.pojo.SupplierSupplyOfGoods;

import java.util.List;
import java.util.Map;

public interface SupplierSupplyOfGoodsService extends IService<SupplierSupplyOfGoods> {
    //根据当前用户，查询供应商目前可以添加到供应商维护商品表的商品
    com.guigu.service.utils.Page Can_be_added_to_supplier_list_data(ShopInfo shopInfo,Integer id,Integer pageno,Integer pagesize);

    //根据id查询商品维护表对象
    SupplierSupplyOfGoods queryById(Integer supplyOrderId);

    //获取所有的维护商品表数据
    Page<SupplierSupplyOfGoods> queryAllSupplier(SupplierSupplyOfGoods supplier,Integer pageno,Integer pagesize);

    //添加商品到供应商维护商品表
    Map add(SupplierSupplyOfGoods supplierSupplyOfGoods);

    Page<SupplierSupplyOfGoods> queryAllpage(SupplierSupplyOfGoods supplierSupplyOfGoods, Integer pageno, Integer pagesize);

    Map checkSupplierSupplyOfGoods(SupplierSupplyOfGoods supplierSupplyOfGoods);

    Map supplierDelivery(PurchaseInfo purchaseInfo);

    Page supplierofgoods(SupplierSupplyOfGoods supplierSupplyOfGoods, Integer loginUserId, Integer pageno, Integer pagesize);

    SupplierSupplyOfGoods querybyid(Integer id);

    Map updatebysupplierPrice(SupplierSupplyOfGoods supplierSupplyOfGoods);

    Map updatebyisDelete(SupplierSupplyOfGoods supplierSupplyOfGoods);

    List<SupplierSupplyOfGoods> queryAllgys(SupplierSupplyOfGoods supplierSupplyOfGoods);
}
